package com.demo.cms.dao.impl;

import com.demo.cms.dao.RoleNaviDao;
import com.demo.cms.model.RoleNavi;
import com.demo.core.dao.impl.base.PageCoreDaoSupport;
import com.demo.core.model.support.GeneralExecuteModel;

/**
 * 角色-导航数据访问实现类
 * 
 * @author ryuu.kk
 * @since 2013-04-23 17:32 pm
 *
 */
public class RoleNaviDaoImpl extends PageCoreDaoSupport<RoleNavi, Long> implements RoleNaviDao {

	/**
	 * 目录空间 
	 */
	protected final static String TABLE_SPACE = "roleNaviSpace.";
	/**
	 * 模型表名
	 */
	protected final static String TABLE_NAME = "T_CMS_ROLE_NAVI";
	/**
	 * 模型表主键ID
	 */
	protected final static String TABLE_PK_NAME = "ID";
	
	@Override
	protected String nameSpace() {
		return TABLE_SPACE;
	}

	@Override
	protected void doInit(GeneralExecuteModel<Long> model) {
		model.setPk(TABLE_PK_NAME);
		model.setTable(TABLE_NAME);
	}
}
